import Cart from "./packages/cart";

const components = [Cart];

const install = function(Vue: any, opts = {}) {
  components.map(component => {
    Vue.component(component.name, component);
  });
};
const win: any = window;
/* 支持使用标签的方式引入 */
if (typeof window !== "undefined" && win.Vue) {
  install(win.Vue);
}

export default {
  install,
  Cart
};
